package edu.kaist.cs442.client.android.common;

import edu.kaist.cs442.server.locationalpush.push.c2dm.PushSVC;
import edu.kaist.cs442.server.locationalpush.register.RegisterSVC;
import edu.kaist.cs442.server.locationalpush.tracker.TrackerSVC;
import org.jboss.resteasy.client.ProxyFactory;
import org.jboss.resteasy.plugins.providers.RegisterBuiltin;
import org.jboss.resteasy.spi.ResteasyProviderFactory;

/**
 * Created by IntelliJ IDEA.
 * User: duyleekun
 * Date: 3/2/12
 * Time: 12:10 AM
 * To change this template use File | Settings | File Templates.
 */

public class RestServices {
	static RegisterSVC registerSVC;
	static PushSVC pushSVC;
	static TrackerSVC trackerSVC;

	static final String baseUrl = "http://143.248.194.135:8080/notification";

	RestServices() {
		RegisterBuiltin.register(ResteasyProviderFactory.getInstance());
	}

	public static RegisterSVC getRegisterSVC() {
		return ProxyFactory.create(RegisterSVC.class, baseUrl);
	}

	public static PushSVC getPushSVC() {
		return ProxyFactory.create(PushSVC.class, baseUrl);
	}

	public static TrackerSVC getTrackerSVC() {
		return ProxyFactory.create(TrackerSVC.class, baseUrl);
	}
}
